// 日期格式化工具的封装

import { dayjs } from 'element-plus'

// export const formatTime = (time) => dayjs(time).format('YYYY-MM-DD HH:mm:ss')
export const formatTime = (time) => dayjs(time).format('YYYY-MM-DD')
export const formatDateTime = (time) => dayjs(time).format('YYYY-MM-DD HH:mm:ss')

export const currentTime = () => dayjs().add(8, 'hour').toISOString()
